import React, { Component } from 'react'
import ReactDOM from 'react-dom'
let el = document.getElementById('dialog')

class Child extends Component {
  render() {
    return ReactDOM.createPortal(
      <div>
        <h3>我是一个子组件</h3>
        <div>fjewfjwlfewl;f</div>
      </div>,
      el
    )
  }
}

export default Child
